/**
 * @ author: 汪孟苹
 */
define([],function(){
	var tpl = {};

	tpl.updateCourse = function(){
		var html = '';
		html += updateCourse();
		return html;
	}
	
	tpl.addCourse = function(){
		var html = '';
		html += addCourse();
		return html;
	}
	var updateCourse = function(){
		return 	'<script id="tpl_updateCourse" type="text/html">'+
				'	<div  class="form-horizontal">'+
				'	  		<div class="form-group">'+
				'			    <label for="courseName" class="control-label notNull col-sm-2">课程名称</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="courseName" value="{{courseName}}" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="lecturerName " class="control-label notNull col-sm-2">讲师名</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="lecturerName" value="{{lecturerName}}" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="hospitalName " class="control-label notNull col-sm-2">医院名称</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="hospitalName" value="{{hospitalName}}"  type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="hospitalAddress " class="control-label notNull col-sm-2">医院地址</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="hospitalAddress" value="{{hospitalAddress}}"  type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="hospitalAddress" class="control-label col-sm-2">详细地址</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="hospitalAddress" value="{{hospitalAddress}}" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="startTime " class="control-label notNull col-sm-2">课程开始时间</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="startTime"  value="{{startTime}}" type="datetime-local" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="endTime " class="control-label notNull col-sm-2">课程结束时间</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="endTime" value="{{endTime}}" type="datetime-local" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="imgAddress " class="control-label col-sm-2">课程图片</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<span class="fa fa-plus item-btn"> <input type="file" id="imgAddress" accept="image/*"></input></span>'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="courseIntroduce" class="control-label col-sm-2">课程内容</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<textarea id="courseIntroduce" cols="5"  class="form-control" placeholder="">{{courseIntroduce}}</textarea>'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="upperLimit" class="control-label col-sm-2 notNull">预约人数上限</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="upperLimit" value="{{upperLimit}}" type="number" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'			{{if isUpdate == true}}'+
				'			<div class="form-group">'+
				'			    <button type="button" class="btn btn-info center-block" id="updateCourse">确认修改</button>'+
				'			</div>'+
				'			{{else if isDelete == true}}'+
				'			<div class="form-group">'+
				'			    <button type="button" class="btn btn-info center-block" id="deleteCourse">确认删除</button>'+
				'			</div>'+
				'			{{/if}}'+
				'	  	</div>'+
				'	</div>'+
				'</script>';
	}
	var addCourse = function(){
		return 	'<script id="tpl_addCourse" type="text/html">'+
				'	<div class="form-horizontal">'+
				'	  		<div class="form-group">'+
				'			    <label for="courseName" class="control-label notNull col-sm-2">课程名称</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="courseName" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="lecturerName" class="control-label notNull col-sm-2">讲师名</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="lecturerName" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="hospitalName" class="control-label notNull col-sm-2">医院名称</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="hospitalName" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="hospitalAddress" class="control-label notNull col-sm-2">医院地址</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="hospitalAddress" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="specificAddress" class="control-label col-sm-2">详细地址</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="specificAddress" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="startTime" class="control-label notNull col-sm-2">课程开始时间</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="startTime" type="datetime-local" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="endTime" class="control-label notNull col-sm-2">课程结束时间</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="endTime" type="datetime-local" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="imgAddress" class="control-label col-sm-2">课程图片</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<span class="fa fa-plus item-btn"> <input type="file" id="imgAddress" accept="image/*"></input></span>'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="courseIntroduce" class="control-label col-sm-2">课程内容</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<textarea id="courseIntroduce" cols="5"  class="form-control" placeholder=""></textarea>'+
				'			    </div>'+
				'			</div>'+
				'	  		<div class="form-group">'+
				'			    <label for="upperLimit" class="control-label notNull col-sm-2">预约人数上限</label>'+
				'			    <div class="control-input col-sm-9">'+
				'			      	<input id="upperLimit" type="text" class="form-control" placeholder="">'+
				'			    </div>'+
				'			</div>'+
				'			<div class="form-group">'+
				'			    <button type="button" class="btn btn-info center-block" id="addNoneCourse">添加课程</button>'+
				'			</div>'+
				'	  	</div>'+
				'	</div>'+
				'</script>';
	}
	return tpl;
});